import React from "react";
import PropTypes from "prop-types";
import PubSub from "pubsub-js";
import Button from "../../Button";


export default function Remove(props) {
    return (
        <Button color={'blue'}
                icon={'icon-trash-gray'}
                plain={ true }
                onClick={ () => PubSub.publish('EV_FILE_NODE_DEL') }
        >
            删除
        </Button>
    )
}

Remove.propTypes = {
    style: PropTypes.object,
    className: PropTypes.string,
    remove: PropTypes.func
}

Remove.defaultProps = {
    style: {},
    className: '',
    remove: () => {}
}